#include <math.h>

#include <iostream>
using namespace std;

bool zhi(long x) {
    if (x == 2)
        return true;
    else if (x % 2 == 0 || x < 2)
        return false;
    else {
        for (int j = 3; j <= sqrt(x); j++) {
            if (x % j == 0) return false;
        }
        return true;
    }
}

int main() {
    int count = 1;
    int num = 0;
    cin >> num;
    for (int i = 2; i <= num / 2; i++) {
        int part = num - i;
        if (zhi(i) && zhi(part)) {
            cout << count << ": " << i << " " << num - i << endl;
            count++;
        }
    }
    system("pause");
    return 0;
}